<?php
namespace app\index\controller;

use think\Controller;
use app\admin\model\Menu;
use app\admin\model\Admin;
use app\admin\model\System;
use app\admin\controller\Auth;

class Index extends Controller
{
    public function index()
    {
        echo '投票系统';
        $action = $this->request->module() . '/' . $this->request->controller() . '/' . $this->request->action();
        dump($action);
        $result = Auth::checkRule($action, 1);
        dump($result);


//        $model = Menu::getInstance();
//        var_dump($model);
//        $model->kkk = 'lkk;opio';
//        var_dump($model);
//        $lists = Menu::getInstance()->select();
//        dump($lists);
//        $model->kkk = 'lkk;opio';
//        var_dump($model);
//        dump($lists);
//        var_dump(Menu::getInstance()->select());
//        var_dump(Admin::getInstance()->select());
//        var_dump(Admin::getInstance());
//
//        var_dump(new Admin());

        ///var_dump(Admin::getInstance()->select());
        // var_dump(System::getInstance());
    }

    public function test()
    {

    }
}
